﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WP_GasTracker.Models
{
    public class NotebookEntry
    {
        public Guid Id { get; set; }
        public DateTime Date { get; set; }
        public int Mileage { get; set; }
        public double Gallons { get; set; }
        public double Price { get; set; }

        public double MilesPerGallon
        {
            get { return Mileage / Gallons; }
        }

        public bool PriceRecorded
        {
            get { return Price != 0; }
        }
    }

    public class Notebook : List<NotebookEntry> { }
}
